package com.atguigu.tingshu.album.client;

import com.atguigu.tingshu.album.client.impl.AlbumAttributeValueDegradeFeignClient;
import com.atguigu.tingshu.common.result.Result;
import com.atguigu.tingshu.model.album.AlbumAttributeValue;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(value = "service-album",fallback = AlbumAttributeValueDegradeFeignClient.class)
public interface AlbumAttributeValueFeignClient {

    @GetMapping("/api/album/albumInfo/findAlbumAttributeValue/{albumId}")
    public Result<List<AlbumAttributeValue>> findAlbumAttributeValueByAlbumId(@PathVariable(value = "albumId") Long albumId);
}
